import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '@/components/mainpage/Index'

//D:\quark\peacock\sparrow\src\components\mainpage\Index.vue

Vue.use(VueRouter)

// 公共路由
export const constantRoutes = [{
        path: '/index',
        name: Index,
        component: Index
    },
    {
        path: '/',
        name: Index,
        component: Index
    }
]

export default new VueRouter({
    routes: constantRoutes
})